package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_system_config" )
public class SystemConfig  implements Serializable {

	private static final long serialVersionUID =  4477765736792421281L;

	/**
	 * 主键
	 */
   	@Column(name = "uid" )
	@Id
	private String uid;

	/**
	 * 七牛云公钥
	 */
   	@Column(name = "qi_niu_access_key" )
	private String qiNiuAccessKey;

	/**
	 * 七牛云私钥
	 */
   	@Column(name = "qi_niu_secret_key" )
	private String qiNiuSecretKey;

	/**
	 * 邮箱账号
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 邮箱发件人用户名
	 */
   	@Column(name = "email_user_name" )
	private String emailUserName;

	/**
	 * 邮箱密码
	 */
   	@Column(name = "email_password" )
	private String emailPassword;

	/**
	 * SMTP地址
	 */
   	@Column(name = "smtp_address" )
	private String smtpAddress;

	/**
	 * SMTP端口
	 */
   	@Column(name = "smtp_port" )
	private String smtpPort;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 七牛云上传空间
	 */
   	@Column(name = "qi_niu_bucket" )
	private String qiNiuBucket;

	/**
	 * 七牛云存储区域 华东（z0），华北(z1)，华南(z2)，北美(na0)，东南亚(as0)
	 */
   	@Column(name = "qi_niu_area" )
	private String qiNiuArea;

	/**
	 * 图片是否上传七牛云 (0:否， 1：是)
	 */
   	@Column(name = "upload_qi_niu" )
	private String uploadQiNiu;

	/**
	 * 图片是否上传本地存储 (0:否， 1：是)
	 */
   	@Column(name = "upload_local" )
	private String uploadLocal;

	/**
	 * 图片显示优先级（ 1 展示 七牛云,  0 本地）
	 */
   	@Column(name = "picture_priority" )
	private String picturePriority;

	/**
	 * 七牛云域名前缀：http://images.moguit.cn
	 */
   	@Column(name = "qi_niu_picture_base_url" )
	private String qiNiuPictureBaseUrl;

	/**
	 * 本地服务器域名前缀：http://localhost:8600
	 */
   	@Column(name = "local_picture_base_url" )
	private String localPictureBaseUrl;

	/**
	 * 是否开启邮件通知(0:否， 1:是)
	 */
   	@Column(name = "start_email_notification" )
	private String startEmailNotification;

}
